﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Layouts/Monoblock.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="ScrumBox.Web.Views.ProductBackLog.Edit" %>
<%@ Import Namespace="ScrumBox.Web.Controllers"%>
<%@ Import Namespace="MvcContrib"%>
<%@ Import Namespace="ScrumBox.Model"%>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%  var backLogItem = ViewData.Get<ProductBackLogItem>(); %>
    
    <h2 class="title"><%= backLogItem.Project.Name%></h2>
	<p class="meta">Last Edited by <a href="#">mick</a> on June 13, 2008 </p>
    <div class="entry">
        <fieldset>
        <legend>Add new product backlog item</legend>
            <form method="post" id="new_project" action='<%= Url.Action("SaveBackLog") %>'>
                
                <label for="title">Title</label>
                <%= Html.TextBox("title", backLogItem.Title ?? "", new { @class = "required" })%>
                <span class="info">The title of the sprint.</span>
                
                <label for="description">Description</label>
                <%= Html.TextArea("description", backLogItem.Description ?? "", 4, 50, new { @class = "required" })%>
                <span class="info">The description of the project.</span>
                                               
                <%= Html.Hidden("projectKey", backLogItem.Project.Key)%>
                <%= Html.Hidden("backLogItemId", backLogItem.Id)%>
                
                <div class="button-row">
                    <input type="submit" id="sprint_save" value="Save" class="submit" />
                </span>
            </form>
        </fieldset>
    </div>
</asp:Content>
